/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package isas;

/**
 *
 * @author Kubik
 */
public class PrintGrades {
    public static void print(String[] predmety, float[] prumery){
        ISAS.jTextArea1.setText("");
        ISAS.jTextArea1.setText("Předmět\tPrůměr\n");
        for(int i = 0; i < predmety.length; i++){
            float prumer = (float) (Math.round(prumery[i]*100.0)/100.0);
            ISAS.jTextArea1.setText(ISAS.jTextArea1.getText()+predmety[i]+"\t"+prumer+"\n");
        }
    }
}
